package com.wrial.seckill.service;
/*
 * @Author  Wrial
 * @Date Created in 15:54 2020/4/5
 * @Description
 */

import com.wrial.seckill.service.model.ItemModel;

import java.util.List;

public interface ItemService {

    // 创建商品
    ItemModel createItem(ItemModel model);

    // 商品列表
    List<ItemModel> listItem();

    // 商品详情
    ItemModel getItemById(Integer id);

    boolean decreaseStock(Integer itemId, Integer amount);

    void increaseSales(Integer itemId, Integer amount);
}
